package com.caesar.Exercise;

/**
 * @author caesar
 * @date 2025/7/12
 * @Description:
 * @apiNote
 */
public class Desigher extends Programmer{
    private double bonus;//奖金

    public Desigher() {
    }

    public Desigher(int Id, String Name, int age, double salary, double bonus) {
        super(Id, Name, age, salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return "职位：设计师\t" + super.getBasicInfo()+"\t奖金:"+ bonus;
    }
}
